﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChessProject_new
{
    public class Control
    {
        // Score Controller
        public ScoreControl Score = new ScoreControl();

        // Controller for if a King Dies
        public KingCheckControl KingCheck = new KingCheckControl();

        // Loop controller for when a piece is clicked
        public LoopControl piececlickedloop = new LoopControl();

        // The set of all the pieces
        public Pieces pieceset = new Pieces();

        //The set of arrays of the pieces
        public PieceArray pa = new PieceArray();
    }

    public class LoopControl
    {
        public bool IsLooping;
        public Piece piece;
    }

    public class KingCheckControl
    {
        public bool KingDead;
        public bool white;
    }

    public class PieceArray
    {
        public Pawn[] WhitePawns;
        public Pawn[] BlackPawns;
        public Piece[] WhitePieces;
        public Piece[] BlackPieces;
    }

    public class ScoreControl
    {
        public int White;
        public int Black;
    }
}
